<?php
/**
 * Created by PhpStorm.
 * User: Vova
 * Date: 9/28/14
 * Time: 11:45 PM
 */



include_once("Model.class.php");

require_once("C:/xampp/htdocs/door-market/php/classes/db.class.php");

require_once("C:/xampp/htdocs/door-market/php/classes/Host_config.class.php");


class Item_model extends Model {

    public function get_item_info($item_no){

        $host_name = Host_config::$host_name;
        $rel_host_name = "$host_name/python_scripts";
        //$item_no = 488;

        $item = db::getInstance()->get_item_info($item_no,$rel_host_name);

        //$this->debug_vardump($item);

        //exit();


        return $item;

    }
    public function item_exist($item_no){
        return db::getInstance()->item_exists($item_no);

    }


    public function debug_vardump($array){
        echo "<pre>";
        var_dump($array);
    }


} 